<?php

       require "../gobal.php";


       $sql="select * from upgrade_device";

       $devices = fetch_rows($sql) ;  

?>

<div class="navbar">
  <div class="navbar-inner">
    <div class="left sliding"><a href="index.php" class="link icon-only"><i class="icon icon-back"></i></a></div>
    <div class="center sliding">选择品牌和机型</div>
    <div class="right"><a href="customer/center.php" class="link icon-only"><i class="icon icon-user"></i></a></div>
  </div>
</div>
<div class="pages navbar-through">
  <div data-page="select-device-page" class="page">
    <div class="page-content">


       <div class="brand-list shadow">
                       <!-- <div class="brand-item active"><a href="/SelectDevice?id=4&brandTypeId=2"><img src="/Upload/20160529222658.png" title="苹果" width="50" height="50" /></a></div>
  -->
<div class="brand-item active"></div>
		   <!--
                        <div class="brand-item"><a href="/SelectDevice?id=4&brandTypeId=3"><img src="/Upload/20160529222709.png" title="华为" width="50" height="50" /></a></div>
                        <div class="brand-item"><a href="/SelectDevice?id=4&brandTypeId=4"><img src="/Upload/20160529222717.png" title="小米" width="50" height="50" /></a></div>
                        <div class="brand-item"><a href="/SelectDevice?id=4&brandTypeId=5"><img src="/Upload/20160529222731.png" title="三星" width="50" height="50" /></a></div>
                        <div class="brand-item"><a href="/SelectDevice?id=4&brandTypeId=6"><img src="/Upload/20160529222740.png" title="魅族" width="50" height="50" /></a></div>
                        <div class="brand-item"><a href="/SelectDevice?id=4&brandTypeId=7"><img src="/Upload/20160529222748.png" title="努比亚" width="50" height="50" /></a></div>
                        <div class="brand-item"><a href="/SelectDevice?id=4&brandTypeId=8"><img src="/Upload/20160529222756.png" title="oppo" width="50" height="50" /></a></div>
                        <div class="brand-item"><a href="/SelectDevice?id=4&brandTypeId=9"><img src="/Upload/20160529222808.png" title="vivo" width="50" height="50" /></a></div>
            -->
       </div>



       <div class="attr-list">
            <div class="top-level-title">请选择机型</div>
                <div class="sub-level-list">
                        
					<?php 
                       
                         foreach($devices as $device){

						 echo "<div class='sub-level-item-warp'><div class='sub-level-item' data-id='".$device["id"]."'>".$device["name"]."</div></div>";

						 }


					?>


                    <div class="clear"></div>
                </div>

      </div>

    <input id="txtBrandType" value="4" type="hidden" />
    </div>
  </div>
</div>
